<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>BPM云 - 帐号激活</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="-1"/>
    <meta name="name" content="BPM云"/>
    <meta name="author" content="Johnny"/>
    <link rel="shortcut icon" href="/bpmp-resources/favicon.ico"/>
</head>
<body style="padding:0; margin:0; background:#fdfdfd">

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#fdfdfd">
    <tr>
        <td align="center" valign="top">
            <table width="581" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="17">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="color:#878787; font-size:11px; font-weight:bold; font-family:Arial; " height="30" align="left"></td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#7bbcde">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                    <tbody><tr>
                                                        <td style="color:#fff; font-size:14px; font-weight:bold; font-family:Arial; text-transform:uppercase;" align="left">BPM云 - 帐号激活</td>
                                                    </tr>
                                                    </tbody></table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="color:#878787; font-size:13px; font-weight:bold; font-family:Arial; " height="30" align="right"></td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td valign="top">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td bgcolor="#e2e5e7">
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="15">

                                                                            <tr>
                                                                                <td style="font-family: 'Microsoft Yahei', Simsun, Arial; font-size:13px; line-height:17px; text-align:left; color:#747474;">
                                                                                    <div style="font-family: 'Microsoft Yahei', Simsun, Arial; font-size:15px; line-height:20px; color:#3b6a79; font-weight:bold; text-align:left;">您好</div>
                                                                                    <p id="result">正在激活您的帐号，请稍后...</p>
                                                                                    <br/>

                                                                                    <a id="siteUrl" href="#" style="display:none; color:#4f6c75; text-decoration:underline; font-size:11px; ">点击这里登录系统&raquo;</a><br /><br />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="font-family: Arial; font-size:13px; line-height:17px; text-align:left; color:#747474;">
                                                                        <br />
                                                                        <div style="font-family: 'Microsoft Yahei', Simsun, Arial; font-size:14px; line-height:20px; color:#000; text-align:left;">&nbsp;&nbsp;&nbsp;&nbsp;顺祝 工作顺利!</div>
                                                                    </td>
                                                                </tr>

                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>


                                    </table>
                                </td>
                            </tr>

                        </table>
                    </td>
                </tr>

            </table>
        </td>
    </tr>
</table>
<script src="/bpmp-resources/static/jslib/jquery/jquery1.11.2.min.js" type="text/javascript"></script>
<script src="/bpmp-resources/static/jslib/bootstrap/global/plugins/bootstrap-toastr/toastr.js" type="text/javascript"></script>
<script src="/bpmp-resources/static/jslib/bootstrap/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
<script src="/bpmp-resources/static/jslib/util/common_bootstrap.js" type="text/javascript"></script>
<script>
    jQuery(document).ready(function() {
        var astr = window.location.search.substr(1);
        doGetAsyncJson('/bpmp-engine/openapi/v1/user/activate/'+astr, function(ret) {
            if (ret && ret.result) {
                $("#result").html("恭喜！您的帐号成功被激活！祝您使用愉快！");
                $("#siteUrl").attr("href", ret.siteUrl).show();
            } else if (ret && ret.errorCode=='NOT_NEW_ACCOUNT') {
                $("#result").html("该帐号已经被激活过！");
            } else {
                $("#result").html("我们抱歉的通知您！当前系统不可用，您的帐号激活失败！请稍后重试或联系客服人员！");
            }
        });
    });
</script>
</body>
</html>
